<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'prodotti-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'categoriaId'); ?>
		<?php echo $form->textField($model,'categoriaId'); ?>
		<?php echo $form->error($model,'categoriaId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'codice'); ?>
		<?php echo $form->textField($model,'codice',array('size'=>16,'maxlength'=>16)); ?>
		<?php echo $form->error($model,'codice'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'codice_produttore'); ?>
		<?php echo $form->textField($model,'codice_produttore',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'codice_produttore'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sn'); ?>
		<?php echo $form->textField($model,'sn',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'sn'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'produttoreId'); ?>
		<?php echo $form->textField($model,'produttoreId'); ?>
		<?php echo $form->error($model,'produttoreId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ivaId'); ?>
		<?php echo $form->textField($model,'ivaId'); ?>
		<?php echo $form->error($model,'ivaId'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'descrizione'); ?>
		<?php echo $form->textField($model,'descrizione',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'descrizione'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'scheda'); ?>
		<?php echo $form->textArea($model,'scheda',array('rows'=>6, 'cols'=>50)); ?>
		<?php echo $form->error($model,'scheda'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'immagine'); ?>
		<?php echo $form->textField($model,'immagine',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'immagine'); ?>
	</div>
        <div class="row">
		<?php echo $form->labelEx($model,'prezzo'); ?>
		<?php echo $form->textField($model,'prezzo'); ?>
		<?php echo $form->error($model,'prezzo'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->